/*
 * @Author: wangqizhang
 * @Date: 2024-04-20 20:58:14
 * @LastEditors: wangqizhang
 * @LastEditTime: 2024-05-23 20:05:52
 * @FilePath: /suixinji-react/src/main.tsx
 * @Description:
 *
 * Copyright (c) 2024 by ${git_name_email}, All Rights Reserved.
 */
import React, { Suspense } from 'react';
import ReactDOM from 'react-dom/client';
import { RouterProvider } from 'react-router-dom';
import Loading from './components/Loading';
import router from './router';
import './index.scss';
import store from './store';
import { Provider } from 'react-redux';
import 'animate.css';
import { ConfigProvider, theme } from 'antd';
import zhCN from 'antd/locale/zh_CN';

ReactDOM.createRoot(document.getElementById('root')!).render(
  <ConfigProvider locale={zhCN}>
    <React.StrictMode>
      <Suspense fallback={<Loading></Loading>}>
        <Provider store={store}>
          <RouterProvider router={router}></RouterProvider>
        </Provider>
      </Suspense>
    </React.StrictMode>
  </ConfigProvider>
);
